package com.lwq.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/15
 */
@Data
@TableName(value="sys_log",schema = "transit")
public class SysLog{

    public static final String SUCCESS_STATUS = "1";

    public static final String FAILED_STATUS = "2";

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String method;

    private String requestMethod;

    private String path;

    /** 请求参数 */
    private String requestParam;

    /** 返回参数 */
    private String responseData;

    private String status;

    private String errorMsg;

    private Date createDate;

    private Long createId;

}
